﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="DanhSachCauHoi.aspx.cs" Inherits="Admin_CauHoi_DanhSachCauHoi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style1 {
            height: 23px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <h2 class="head-title">
       Danh sách câu hỏi
    </h2>
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="form-group">

            <table>
                <tr>
                    <td><h3>Tìm kiếm </td>
                    <caption>
                        <h3></h3>
                        <td>&nbsp;</td>
                    </caption>
                </tr>
                <tr>
                    <td>Tên loại:</td>
                    <td>
                        <asp:DropDownList ID="ddltenloai" runat="server" OnSelectedIndexChanged="ddltenloai_SelectedIndexChanged" AutoPostBack="true">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1">Tên môn:</td>
                    <td class="auto-style1">
                        <asp:DropDownList ID="ddltenmon" runat="server" OnSelectedIndexChanged="ddltenmon_SelectedIndexChanged" AutoPostBack="true">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1">Độ khó:</td>
                    <td class="auto-style1">
                        <asp:DropDownList ID="ddldokho" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddldokho_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
        
    </div>
            <asp:Literal ID="ltrMess" runat="server"></asp:Literal>
    <asp:GridView ID="GridView1" CssClass="table table-bordered" runat="server" AutoGenerateColumns="False" Width="100%">
        <Columns>
            <asp:BoundField DataField="MaCH" HeaderText="Mã câu hỏi" />
            <asp:BoundField DataField="NoiDungCH" HeaderText="Nội dung" />
            <asp:BoundField DataField="NgayTao" HeaderText="Ngày tạo" />
            <asp:BoundField DataField="TenLoai" HeaderText="Tên loại" />
            <asp:BoundField DataField="TenMon" HeaderText="Tên môn" />
            <asp:BoundField DataField="SoLuaChon" HeaderText="Số lựa chọn" />
            <asp:TemplateField HeaderText="Tác Vụ">
                <ItemTemplate>
                    <a href="capnhat.aspx?macauhoi=<%#Eval("MaCH") %>" class="btn btn-default" title="Sửa">
                        <i class="fa fa-pencil-square-o"></i>
                    </a>
                    <a href="xoa.aspx?macauhoi=<%#Eval("MaCH") %>" class="btn btn-default m-l-3" title="Xóa">
                        <i class="fa fa-trash-o"></i>
                    </a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
    
</asp:Content>

